﻿using System;
using System.Threading.Tasks;

namespace 死锁cpu占用高
{
    class Program
    {
        static void Main(string[] args)
        {
            Run();
            Console.Read(); 
        }

        public static void Run()
        {
           var task= Task.Factory.StartNew(() => {
                bool b = false;
                while (true)
                {
                    b = !b;
                }
            });
            task.Wait();
        }

    }
}
